<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/include/taglib.jsp"%>
<%@ include file="/jsp/include/headform.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String loginName = (String)session.getAttribute("loginName");
String userId = (String)session.getAttribute("userId");
%>

<html>
<head>
    <base href="<%=basePath%>">

    <title>修改卡片</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
	<script src="${ctxStatic}/ckeditor/ckeditor.js"></script>
    <script type="text/javascript">
    	var editor = null;
		$(function(){
			var loginName = '<%=loginName%>';
			var userId = '<%=userId%>';
			var processInstanceId = $("[name=processInstanceId]").val();
			var status = $("[name=status]").val();
			var operateUserId = $("[name=operateUserId]").val();
			
			//非草稿状态需判断流程状态是否走到当前登陆人节点
			if(status != "draft" && status != "cancle"){
				$.ajax({
					async : false,
				    url : "${ctx}/flow/getStatus",
					type : 'post',
					data: "processInstanceId="+processInstanceId,
					success: function(data, status, xhr) {
						if (status == "success" && data.result == "success") {
							var statu = data.statu;
							var taskId = data.taskId;
							var dealUser = data.loginName;
							
							//返回修改后判断当前登录用户是否为处理人
							if(loginName != dealUser){
								return false;
							}
							
							$("[name=createUserId]").val(dealUser);
							$("[name=taskId]").val(taskId);
							
							$("#titleChange").html("返回修改");
							$("#choose1Html").html("提交审核");
							$("#choose2Html").html("取消申报");
							$("#comment").val("提交审核");
							
							$('.ywbl').click(function(){
								showView();
					        });
							
							$("[name=choose]").change(function(){
					        	var chooseVal = $("input[name='choose']:checked").val();
					        	if(chooseVal == "1"){
					        		$(".delChoose").show();
					        		$("#step").val("deptUser");
					        		$("[name=flag]").val("1");
					        		$("#comment").val("提交审核");
					        	}
					        	if(chooseVal == "0"){
					        		$(".delChoose").hide();
					        		$("#step").val("stopFlow");
					        		$("[name=flag]").val("0");
					        		$("#comment").val("取消申报！");
					        	}
					        });
						}else{
							$("#submitDiv").hide();
						}
			        }, 
			        error: function() {
			           	alert("对不起！你的请求出现异常，请联系服务人员！");
					}
				});
			}else{
				//非当前记录创建人不可以提交审核
				if(userId != operateUserId){
					$("#submitDiv").hide();
				}else{
					$("#titleChange").html("申请信息");
					$(".showChoose").hide();
					
					$('.ywbl').click(function(){
						showView();
			        });
				}
			}
			
			editor = CKEDITOR.replace( 'editor1',{
				height: 400
			});
			
			$('#saveBtn').click(save);
			
			$("#form").validate();
			
			$("#resetBut").click(function(){
				$("#form input:text").not('.readonly').val("");
				$("#form select").val("");
				$("#form textarea").val("");
			});	
			
			$('#verifyBtn').click(verify);
			
			$('.cancelButton').click(function(){
	            $(".fjcount").text("0");
	            $('div[name$=Window]').hide();
	            $("#bt").css("display", "none");
	        });
			
			$(".commitFlow").click(function(){
				var step = $("#step").val();
				if(step != "stopFlow"){
					if($("#nextUserId").val() == "" || $("#nextUserId").val() == null){
	    				alert("审核领导不能为空");
	    				return false;
	    			}
				}
				
				var status = $("[name=status]").val();
				var step = $("#step").val();
				var title = "是否提交审核";
				
				if(step == "stopFlow"){
					title = "是否取消申报";
				}
				
				if(confirm(title)){
					$(".commitFlow").attr("disabled","disabled");
					
					editor.updateElement();
					//非草稿状态则继续执行流程,若为草稿状态则开启流程
					if(status != "draft" && status != "cancle"){
						$('#form').ajaxSubmit({
							type: 'post',
							url: '${ctx}/card',
							success: function(result) { // data 保存提交后返回的数据，一般为 json 数据
								$.ajax({
								    url : "${ctx}/flow/flowCardComplete",
									type : 'post',
									data: $('#recordForm').serialize(),
									success: function(data, status, xhr) {
										if(status == "success" && data == "success"){
											//绑定意见附件
					                		var _attachIds = $("table#leaderupload tbody tr"), attachIds = "";
					   	                    for (var i = 0; i < _attachIds.length; i++) {
					   	                   		attachIds += $(_attachIds[i]).attr("name") + ",";
					   	                    }
					   	                    attachIds = attachIds.substring(0, attachIds.length - 1);
					                		bindAttach('cardFlow',$("[name=taskId]").val(),attachIds);
					                		
											alert("保存成功！");
											window.close();
										}else{
											alert("保存失败！");
											$('#handle_zone_loading').hide();
							                $(".btnSubmit").removeAttr("disabled");
										}
							        }, 
							        error: function() {
							           	alert("对不起！你的请求出现异常，请联系服务人员！");
						                $('#handle_zone_loading').hide();
						                $(".btnSubmit").removeAttr("disabled");		           	
									}
								});
				            },
				            error: function(){
					           	alert("对不起！你的请求出现异常，请联系服务人员！");
				                $('#handle_zone_loading').hide();
				                $(".btnSubmit").removeAttr("disabled");	            	
				            }
						});
					}else{
						$('#form').ajaxSubmit({
							type: 'post',
							url: '${ctx}/card',
							success: function(result) { // data 保存提交后返回的数据，一般为 json 数据
								$.ajax({
								    url : "${ctx}/flow/flowCardStart",
									type : 'post',
									data: $('#recordForm').serialize(),
									success: function(data, status, xhr) {
										if(status == "success" && data.result == "success"){
											var taskId = data.taskId;
											//绑定意见附件
					                		var _attachIds = $("table#leaderupload tbody tr"), attachIds = "";
					   	                    for (var i = 0; i < _attachIds.length; i++) {
					   	                   		attachIds += $(_attachIds[i]).attr("name") + ",";
					   	                    }
					   	                    attachIds = attachIds.substring(0, attachIds.length - 1);
					                		bindAttach('cardFlow',taskId,attachIds);
											
											alert("保存成功！");
											$('div[name$=Window]').hide();
							                $("#bt").css("display", "none");
							                $(".commitFlow").removeAttr("disabled");
											window.close();
										}else{
											alert("保存失败！");
											$('#handle_zone_loading').hide();
							                $(".btnSubmit").removeAttr("disabled");
										}
							        }, 
							        error: function() {
							           	alert("对不起！你的请求出现异常，请联系服务人员！");
						                $('#handle_zone_loading').hide();
						                $(".btnSubmit").removeAttr("disabled");		           	
									}
								});
				            },
				            error: function(){
					           	alert("对不起！你的请求出现异常，请联系服务人员！");
				                $('#handle_zone_loading').hide();
				                $(".btnSubmit").removeAttr("disabled");	            	
				            }
						});
					}
				}
	        });
	        
	        $("#myuploadify").uploadify({
                'auto': false,
                'method': "post",
                'height': 20,
                'width': 100,
                'swf': '${ctxStatic}/uploadify/uploadify.swf',
                'uploader': '${ctx}/api/attach/upload?groupName=chronFlow' ,
                'fileTypeDesc': '格式:txt,xls，xlsx,doc,docx,rar,zip,jpg,png,pdf',		//描述
                'fileTypeExts': '*.txt;*.xls;*.xlsx;*.doc;*.docx;*.rar;*.zip;*.jpg;*.png;*.pdf',			//文件类型
                'fileSizeLimit': '30000KB',			//文件大小
                'buttonText': '选择文件',			//按钮名称
                'fileObjName': 'uploadify',
                'multi': true,
                'successTimeout': 5,
                'requeueErrors': false,
                'removeTimeout': 1,
                'removeCompleted': true,
                'onSelectError': function (file, errorCode, errorMsg) {
                    alert("失败");
                    if (errorCode == -110) {
                        this.queueData.errorMsg = "文件太大，无法上传！";
                    }
                },
                'onUploadSuccess': function (file, data, response) {
                    var attachs = jQuery.parseJSON(data);
                    var attach = attachs.data[0];

                    if (attach.id != null)
                        $(this.button[0]).parents("table:first").find("tbody:first").append("<tr name=\"" + attach.id + "\"><td class='t_l'>" + attach.fileName + "</td><td class='t_r'>" + attach.fileSize + "</td><td class='t_c'>" + attach.uploadDate + "</td><td class='t_c'><a href='${ctx}/api/attach/download/"+attach.id+"'>下载</a></td><td><a href='javascript:void(0);' id="+attach.id+" name='attach_id' onclick='removeFile(this);'>删除</a></td></tr>");
                },

            });
	        
	        $("#addAttachP").click(function(){
            	$(".f_window").css("display", "none");
            	$("#dialogAttach").dialog({
       				resizable: false,
       				title: '上传附件',
                       width: 490,
                       beforeClose: function( event, ui ) {
                             $(".f_window").css("display", "block");
                             var _attachIds = $("table#leaderupload tbody tr");
                     		 $("#addAttachP a").text("上传意见附件("+_attachIds.length+")");  
                       },
                       buttons: {
                       	"保存": function () {
                       		$(this).dialog("close");
                       	},
                       	"取消": function () {
                       		var _attachIds = $("table#leaderupload tbody tr");
           	                for (var i = 0; i < _attachIds.length; i++) {
           	                	removeFile2($(_attachIds[i]));
           	                }
                       		$(this).dialog("close");
                       	}
                       }
                    
       			});
            });
			
			getDeptLeader();
		})
		
		function save(){
			if(!$("#form").valid()){
				alert('请先填写所有必填项');
				return false;
			}
			
			if(!checkTime($(':input[name="contentTimeStart"]').val(),$(':input[name="contentTimeEnd"]').val(),"资料内容时间")){
				return false;
			}
			
			$('#handle_zone_loading').show();
			$(".btnSubmit").attr("disabled","disabled");
			
			editor.updateElement();
			$('#form').ajaxSubmit({
				type: 'post',
				url: '${ctx}/card',
				success: function(result) { // data 保存提交后返回的数据，一般为 json 数据
					if(result.info.success){
		                alert('提交成功！');
		                window.close();						
					}else{
			           	alert("对不起！你的请求出现异常，请联系服务人员！");
		                $('#handle_zone_loading').hide();
		                $(".btnSubmit").removeAttr("disabled");						
					}
	            },
	            error: function(){
		           	alert("对不起！你的请求出现异常，请联系服务人员！");
	                $('#handle_zone_loading').hide();
	                $(".btnSubmit").removeAttr("disabled");	            	
	            }
			});
		}
		
		//提交审核
		function verify(){
			if(!$("#form").valid()){
				alert('请先填写所有必填项');
				return false;
			}
			
			showView();
		}
		
		//获取部门审核领导
		function getDeptLeader(){
			$.ajax({
				async : false,
			    url : "${ctx}/flow/getUserInfoGroup/DEPT_LEADER",
				type : 'get',
				datatype: "json",
				contentType: "application/json",
				success: function(data, status, xhr) {
					if (status == "success" && data != null) {
						var selectItem = "<option value=''>请选择</option>";
						
						$.each(data,function(entryIndex,entry){
							selectItem += "<option value='" + entry.loginorganname + "'>" + entry.name + "</option>";
						});
						
						$("#nextUserId").append(selectItem);
					}
		        }, 
		        error: function() {
		           	alert("对不起！你的请求出现异常，请联系服务人员！");
		           	var selectItem = "<option value=''>请选择</option>";
		           	$("#nextUserId").append(selectItem);
				}
			});
		}

		function removeFile(paramObj){
			if(confirm("是否删除，删除后无法恢复")){
				var $target = $(paramObj);
				$.ajax({
					url			: 	"${ctx}/api/attach/del/"+$target.attr("id"),
					async: false,
					dataType	: 	"json",
					type		:	'delete',
					error:function(XMLHttpRequest, textStatus, errorThrown){
					},
					success: function( data ) {
						$target.parent().parent().remove();
					}
				});
			}
		}
		
		function removeFile2(paramObj){
			var $target = $(paramObj);
			$.ajax({
				url			: 	"${ctx}/api/attach/del/"+$target.attr("name"),
				async: false,
				dataType	: 	"json",
				type		:	'delete',
				error:function(XMLHttpRequest, textStatus, errorThrown){
				},
				success: function( data ) {
					$target.remove();
				}
			});
		}
		
		function bindAttach(modelName,_id,_attachIds){
			$.ajax({
			        async: false,
			        url : "${ctx}/api/attach/bind",
			        type : 'post',
			        data: "&modelName="+modelName+"&modelId="+_id+"&attachIds="+_attachIds,
			        success: function(data, status, xhr) {
			            
			        },
			       error:function(XMLHttpRequest, textStatus, errorThrown){
			       //alert(XMLHttpRequest+"save失败");
			       }
			});
		}
		
		function showView(){
			$("#bt").height($(document).height());
            $(".f_window").css("margin-top", ($(window).height() - $('.f_window').outerHeight()) / 2 + $(document).scrollTop());
            $(".f_window").css("margin-left", ($(window).width() - $('.f_window').outerWidth()) / 2);
            $(".f_window").css("display", "block");
            $("#bt").css("display", "block");
             
			$('#recordWindow').show();
		}
		
		function checkTime(startTime,endTime,tip){
			var start = new Date(startTime.replace("-", "/").replace("-", "/"));
			var end = new Date(endTime.replace("-", "/").replace("-", "/"));
			if(start>end){
				alert(tip+'-结束日期不能小于开始日期!');
				return false;
			}
			return true;
		}
    </script>
</head>

<body class="Flow">
	<div id="dialogAttach" title="" style="display: none">
    	<p>
    		<table width="100%" id="leaderupload" style="font: 12px/1.5 'Helvetica Neue', 'Microsoft YaHei', Arial, 'Liberation Sans', FreeSans, sans-serif;">
    			<thead>
					<tr>
						<td colspan="5">
							<input id="myuploadify" class="upload_button" type="button" value="浏览..." />
							<div style="display:none" class="myissue"></div>
							<input type="button" value="上传"  onclick="$('#myuploadify').uploadify('upload','*');">
							<input type="button" value="取消"  onclick="$('#myuploadify').uploadify('cancel','*');">
						</td>
					</tr>
					<tr>
						<td colspan="5">&nbsp</td>
					</tr>
					<tr style="background-color:#f4f4f4;">
						<td class="t_c">文件名</td>
						<td width="20%" class="t_c">大小(kb)</td>
						<td width="25%" class="t_c">上传时间</td>
						<td width="20%" class="t_c" colspan="2">操作</td>
					</tr>
				</thead>
				<tbody id="tbleader"></tbody>
        	</table>
        </p>
    </div>
    
    <div id="bt" class="transparent" style="display: none"></div>
                            
	<div class="f_window w570" id="recordWindow" name="recordWindow" style="display:none;">
	    <h3 class="clearfix mb10"><span class="fl" id="titleChange"></span>
	
	        <div class="fr close"><a class="cancelButton" href="javascript:void(0);">关闭窗口</a></div>
	    </h3>
	    <form id="recordForm">
	        <div class="con">
	        	 <input type="hidden" name="id" value="${card.id}"/>
	        	 <input type="hidden" name="contentTitle" value="${card.contentTitle}"/>
                 <input type="hidden" name="status" value="${card.status}"/>
                 <input type="hidden" name="operateUserId" value="${card.operateUserId}"/>
	        	 <input type="hidden" name="type" id="type" value="card"/>
      		  	 <input type="hidden" name="createUserId" id="createUserId"/>
				 <input type="hidden" name="createUserName" id="createUserName"/>
				 <input type="hidden" name="todoItemId" value="${card.todoItemId}"/>
             	 <input type="hidden" name="processInstanceId" value="${card.processInstanceId}"/>
             	 <input type="hidden" name="processDefinitionId" value="${card.processDefinitionId}"/>
             	 <input type="hidden" name="taskId" id="taskId"/>
             	 <input type="hidden" name="flag" id="flag" value="1"/>
             	 <input type="hidden" name="step" id="step" value="deptUser"/>
	            <table width="100%" border="0" cellspacing="0" cellpadding="0">
	            	<tbody>
	            		<tr class="showChoose">
		                    <td width="10%"></td>
		                    <td class="td_1"><input style="margin-top: 1.5px;float:left;" checked type="radio" name="choose" id="choose1" value="1"><span style="margin-left: 20px;float:left;" id="choose1Html"></span></td>
		                </tr>
		                <tr class="showChoose">
		                    <td width="10%"></td>
		                    <td class="td_1"><input style="margin-top: 1.5px;float:left;" type="radio" name="choose" id="choose2" value="0"><span style="margin-left: 20px;float:left;" id="choose2Html"></span></td>
		                </tr>
		                <tr style="height: 20px;" class="showChoose">
		                	<td></td>
		                	<td></td>
		                </tr>
		                <tr class="delChoose">
		                    <td width="10%"></td>
	               		    <td class="td_1">
              		    		<table>
		                    		<tr>
		                    			<td>审核人：</td>
		                    			<td>
		                    				<select id="nextUserId" name="nextUserId" class="input_large">
							                </select>
		                    			</td>
		                    		</tr>
		                    	</table>
		                    </td>
		                </tr>
		                <tr class="delChoose">
		                    <td style="padding: 1px"></td>
		                    <td style="padding: 1px" >
		                    	<table style="width:100%">
		                    		<tr>
		                    			<td>&nbsp;&nbsp;&nbsp;&nbsp;意见：</td>
		                    			<td>
		                    				<span class="fr mr8" style="display:inline;" id="addAttachP"><a href="javascript:void(0);">上传意见附件(0)</a></span>
	                    				</td>
		                    		</tr>
		                    	</table>
		                   </td>
		                </tr>
		                <tr class="delChoose">
		                    <td></td>
		                    <td width="100%">
		                        <textarea style="width:94%" name="comment" id="comment">提交审核</textarea>
		                    </td>
		                </tr>
	                </tbody>
	            </table>
	        </div>
	        <div class="button t_c">
	            <input type="button" id="commitFlow" class="commitFlow" value="提交">
	            &nbsp;
	            <input type="reset" class="cancelButton" value="关闭">
	        </div>
	    </form>
	</div>

    <div class="f_bg">

        <!--Panel_6-->

        <div class="Divab1">

            <!--1st-->

            <div class="panel_6">

                <div class="divT">

                    <div class="mb10 icon icon_1"></div>

                    <div class="more_4"><a title="更多">更多</a></div>

                </div>

                <div class="divH">

                    <div class="divB">

                        <h5 class="clearfix">业务办理</h5>

                        <div class="con">

                            <ul class="button clearfix">

                                <li><a class="ywbl">业务办理</a></li>

								<!-- <li><a class="print">打印</a></li> -->
								
								<c:choose>
									<c:when test="${card.status == 'draft'}">
										<li><a class="jk">业务监控</a></li>
									</c:when>
									<c:otherwise>
										<li><a class="jk" href="${jeesiteAddress}processDefinitionId=${card.processDefinitionId}&processInstanceId=${card.processInstanceId}" target="_blank">业务监控</a></li>
									</c:otherwise>
								</c:choose>

                                <!-- <li><a class="tips">小提示</a></li>

                                <li><a class="imp">公文导入</a></li>

                                <li><a class="exp">公文导出</a></li> -->

                            </ul>

                        </div>

                    </div>

                    <div class="divF"></div>

                </div>

            </div>

            <!--1st End-->

        </div>

        <!--Panel_6 End-->

        <div class="logo_1"></div>

        <div class="gray_bg">

            <div class="gray_bg2">

                <div class="w_bg">

                    <div class="Bottom">

                        <div class="Top">

                            <h1 class="t_c">上海申通地铁集团有限公司<br>
                              	卡片管理</h1>

                            <div class="mb10">
                                <form id="form" method="post">
                                	<input type="hidden" name="id" value="${card.id}"/>
                                	<input type="hidden" name="status" value="${card.status}"/>
                                	<input type="hidden" name="operateUserId" value="${card.operateUserId}"/>
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_2">
                                        <thead>
                                            <th colspan="4" class="f1">
                                                <h5 class="fl">基本信息</h5>
                                            </th>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td class="lableTd t_r">资料代码</td>
                                                <td width="35%">
                                                    <input type="text" class="input_large readonly" name="code" maxlength="50" value="${card.code}" style="border:none;" readonly/>
                                                </td>
                                                <td class="lableTd t_r">卡片序号</td>
                                                <td width="35%">
                                                    <input type="text" class="input_large readonly"  name="cardNo"  maxlength="50" value="${card.cardNo}" style="border:none;" readonly></td>
                                            </tr>
                                            <tr>
                                                <td class="lableTd t_r"><div class="red">*</div>资料标题</td>
                                                <td colspan="3">
                                                    <input type="text" class="input_full required" name="contentTitle" maxlength="200" value="${card.contentTitle}"/>
                                                </td>             
                                            </tr>
                                            <tr>
                                                <td class="lableTd t_r"><div class="red">*</div>资料来源</td>
                                                <td colspan="3"><textarea name="source" rows="5" cols="80" class="required" maxlength="1000">${card.source}</textarea></td>             
                                            </tr>         
                                            <tr>
                                                <td class="lableTd t_r"><div class="red">*</div>资料内容时间</td>
                                                <td>
                                                    <input type="text" class="input_small required" name="contentTimeStart" maxlength="20" readonly onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});" value="${card.contentTimeStart }"/> ~
                                                    <input type="text" class="input_small required" name="contentTimeEnd" maxlength="20" readonly onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});" value="${card.contentTimeEnd}"/>
                                                </td>
                                                <td class="lableTd t_r"><div class="red">*</div>关键词</td>
                                                <td>
                                                    <input type="text" class="input_large required" name="keyword" maxlength="200" value="${card.keyword}"/>
                                                </td>                                                                                                
                                            </tr>     
                                            <tr>
                                                <td class="lableTd t_r">资料整理者</td>
                                                <td>
                                                    ${card.operateUser}
                                                </td>
                                                <td class="lableTd t_r">资料报送单位</td>
                                                <td>
                                                	${card.operateDept}
                                                </td>
                                            </tr>         
                                            <tr>
                                                <td class="lableTd t_r">资料整理时间</td>
                                                <td colspan="3">
                                                    ${card.operateTime}
                                                </td>
                                            </tr>                                                                                
		                                  	<tr class="content7">
			                          	     	<td class="lableTd t_r">相关附件：</td>
			                                    <td colspan="3">
												  	<iframe style="display:inline;" scrolling="auto" height="150" frameborder="0" marginheight="0" marginwidth="0" width="100%" id="attachFrame" name="attachFrame" 
												  	src="${ctx}/jsp/attach/fileUpload.jsp?modelName=card&modelId=${card.id}&procType=edit"></iframe>
												</td>
			                          	    </tr>    
		                                  	<tr class="content7">
			                          	     	<td class="lableTd t_r"><div class="red">*</div>资料正文</td>
			                                    <td colspan="3">
										            <textarea id="editor1" name="content" rows="10" cols="80">
										                ${card.content}
										            </textarea>
												</td>
			                          	    </tr> 					                          	                                                 
                                        </tbody>
                                    </table>
                                    
                                    <%-- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_2" id="leaderView">
						                <thead>
						                	<th colspan="4"><h5 class="fl">填报信息</h5></th>
					                    </thead>
						                <tr>
						                  <td class="lableTd t_r"><div class="red">*</div>审核领导</td>
				                  		  <td>
				                  		  	  <input type="hidden" name="type" id="type" value="card"/>
				                  		  	  <input type="hidden" name="createUserId" id="createUserId"/>
                  							  <input type="hidden" name="createUserName" id="createUserName"/>
                  							  <input type="hidden" name="todoItemId" value="${card.todoItemId}"/>
							               	  <input type="hidden" name="processInstanceId" value="${card.processInstanceId}"/>
							               	  <input type="hidden" name="processDefinitionId" value="${card.processDefinitionId}"/>
							               	  <input type="hidden" name="taskId" id="taskId"/>
								              <input type="hidden" name="flag" id="flag"/>
								              <input type="hidden" name="step" id="step" value="deptUser"/>
							                  <select id="nextUserId" name="nextUserId" class="input_large">
							                  </select>
						                  </td>
						                </tr>
						              </table> --%>
                                </form>
                            </div>
                            <div class="mb10 t_c" id="submitDiv">
                                 <input type="button" class="btnSubmit" id="verifyBtn" value="提 交" />
                                &nbsp;
              					<input type="button" id="btndel" value="关 闭" onclick="window.close()"/>
                                &nbsp;
              					<input type="button" class="btnSubmit" id="saveBtn" value="保存草稿" />
                                &nbsp;
                                <input type="button" id="resetBut" value="重置" />
                                
								<div id="handle_zone_loading" style="width:100%;align:center;line-height:20px;display:none" class="">
							      <p style="width:auto;display:inline;"><img src="${ctxStatic}/images/loading2.gif" style="display:inline;"/>
							      <b style="color:green;display:inline;">&nbsp;正在提交</b></p>
							    </div>                                 
                            </div>
                            <div class="footer"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
